import { request } from '@/utils/http'


export const getOrderList = (data ?: any) => {
	return request.get('/Order/search-orders', data, {
		showLoading: false
	})
}

export const getOrderDetail = (orderNo ?: any) => {
	return request.get(`/Order/${orderNo}`,'',{
		showLoading: false
	})
}
export const getPayMethods = () => {
	return request.get(`/Order/pay-methods`,'',{
		showLoading: false
	})
}
export const postPayOrder = (data?:any) => {
	return request.post(`/Order/pay-order`,data,{
		contentType: 'application/x-www-form-urlencoded',
		showLoading: true
	})
}
